package ProgramLogic;

import java.io.IOException;

import DataStorageAccess.DataToXML;

public class ProgramCore {
    MediaManager mediaManager = MediaManager.getInstance();

    public ProgramCore() {
    }

    public void save() throws IOException {
	DataToXML.save(MediaManager.getInstance());
    }

    public Medium[] getAllMedia() {
	return (Medium[]) mediaManager.getMediaList().toArray(
		new Medium[mediaManager.getMediaList().size()]);
    }
}
